<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=
    , initial-scale=1.0">
    <title>Document</title>
    <style>
        img{
            position: absolute;
            left: 0px;
            top: 0px;
        }
    </style>
</head>
<body>
    <img src="./images/星号.png" alt="">
    <script>
        let img =document.querySelector('img')
        document.addEventListener('mousemove',function(e){
            img.style.left=e.pageX-24+'px'
            img.style.top=e.pageY-24+'px'
        })
    </script>
</body>
</html>